//
//  KKPickerView.h
//  FreightAssistant
//
//  Created by leo on 15/11/22.
//  Copyright © 2015年 leo. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef void(^KKPickerViewCancelBlock)(void);
typedef void(^KKPickerViewSaveBlock)(NSString * __nonnull selectedString);

@interface KKPickerView : UIWindow

- (nullable instancetype)initWithItemTitleArray:(NSArray* __nullable)titles;

@property (nullable, nonatomic, copy) KKPickerViewCancelBlock cancleBlock;
@property (nullable, nonatomic, copy) KKPickerViewSaveBlock saveBlock;

@property (nullable, nonatomic, strong) NSArray *titles;

- (void)show;

- (void)showWithTitle:(NSString* __nullable)title;

- (void)cancel;

@end